|
uarti2cspi2 2.2.0
|
UART I2C SPI 2 Click example. More...
Macros | |
| #define | DEMO_MESSAGE "UART I2C/SPI 2 Click - demo message\r\n" |
Functions | |
| void | application_init (void) |
| void | application_task (void) |
| int | main (void) |
UART I2C SPI 2 Click example.
This example demonstrates the use of the UART I2C SPI 2 Click board. It sends a predefined demo message to both UART0 and UART1 interfaces, then reads back any received data and logs the results on the USB UART.
The demo application is composed of two sections :
Initializes the logger and UART I2C SPI 2 Click, and applies the default configuration which sets the UART0 to 115200-8N1 and UART1 to 9600-8N1.
Alternately selects UART0 and UART1, sends the demo message, reads back data from the RX FIFO, and logs the transmitted and received strings every second.
| #define DEMO_MESSAGE "UART I2C/SPI 2 Click - demo message\r\n" |
| void application_init | ( | void | ) |
< Logger config object.
< Click config object.
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
| void application_task | ( | void | ) |
| int main | ( | void | ) |